import request from '~/utils/resquest'

// 字典管理 主列表
export const getSystemDictList = <T>(params: T) => {
  return request({ url: '/api/gxsaas-system/dict/list', method: 'GET', params })
}

// 上级字典
export const getSystemDictTree = <T>(params: T) => {
  return request({ url: '/api/gxsaas-system/dict/tree', method: 'GET', params })
}

// 字典管理 新增、编辑
export const postSystemDictSubmit = <T>(data: T) => {
  return request({ url: '/api/gxsaas-system/dict/submit', method: 'POST', data })
}

// 字典管理 删除
export const postSystemDictRemove = <T>(data: T) => {
  return request({ url: `/api/gxsaas-system/dict/remove?ids=${data}`, method: 'POST' })
}
